public class Fbnq {
    protected static int F(int a){
        if(a ==1){
            return 0;
        }else if(a == 2){
            return 1;
        }else{
            return F(a -1) + F(a - 2);
        }
    }

    public static void main(String[] args) {
        int a = 6;
        int ret = F(a);
        System.out.println("斐波那契数列第"+ a + "项为"+ ret);
    }
}